package common.utils;

import common.exception.ParameException;

import java.util.Objects;

public class ParamUtils {
    /**
     * 检查必填参数，失败抛出异常
     */
    public static void check(Object... params) {
        if (Objects.isNull(params)) {
            throw new ParameException();
        }
        for (Object param : params) {
            if (Objects.isNull(param)) {
                throw new ParameException();
            }
        }
    }
}
